import GbzResManager from "../manager/GbzResManager";

const { ccclass, property } = cc._decorator;

@ccclass
export default class GbzScrew extends cc.Component {

    index: number = -1
    group: string = ''
    joint: cc.RevoluteJoint = null

    init(index: number, group: string, joint: cc.RevoluteJoint) {
        this.index = index
        this.joint = joint
        this.group = group
        this.node.getComponent(cc.Sprite).spriteFrame = GbzResManager.ins.sprite(`gbz_screw${index}`)
    }
}
